def make_chocolate(small, big, goal):
  use_big = min(big, goal // 5)
  remaining_weight = goal - use_big * 5
  if remaining_weight <= small:
        return remaining_weight
  return -1
